<!-- jQuery  -->
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
<script src="__PUBLIC__/assets/js/bootstrap.bundle.min.js"></script>
<script src="__PUBLIC__/assets/js/metisMenu.min.js"></script>
<script src="__PUBLIC__/assets/js/waves.min.js"></script>
<script src="__PUBLIC__/assets/js/jquery.slimscroll.min.js"></script>
<script src="__PUBLIC__/assets/plugins/toast/jquery.toast.min.js"></script>

<script src="__PUBLIC__/assets/js/app.js"></script>
<script>
<block name="timeout">
$.ajaxSetup( {
	//设置ajax请求结束后的执行动作
	complete : 
		function(XMLHttpRequest, textStatus) {
			// 通过XMLHttpRequest取得响应头，sessionstatus
			var sessionstatus = XMLHttpRequest.getResponseHeader("sessionstatus");
			if (sessionstatus == "TIMEOUT") {
			var win = window;
			while (win != win.top){
				win = win.top;
			}
			win.location.href= XMLHttpRequest.getResponseHeader("CONTEXTPATH");
		}
	}
});
</block>
function notify(icon, title, content){
  $.toast({
    heading: title,
    text: content,
    showHideTransition: 'slide',
    icon: icon,
    position: 'top-right',
  })
}
</script>